package com.zgs.mall.order.feign;

import com.zgs.common.utils.R;
import com.zgs.mall.order.vo.MemberAddressVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient("mall-member")
public interface MemberFrignService {
    //收货列表
    @GetMapping("/member/memberreceiveaddress/{memberId}/address")
    public List<MemberAddressVo> getAddress(@PathVariable(name="memberId") Long memberId);
    @GetMapping("/member/memberreceiveaddress/seataTest")
    public R seataTest();

    @RequestMapping("/member/member/seataAddtest")
    public R seataAddtest();
}
